<?php
// +----------------------------------------------------------------------
// | 商品分类模型
// +----------------------------------------------------------------------
// | Author: myh
// +----------------------------------------------------------------------
namespace app\common\model;

class GoodsCategoryModel extends BaseModel
{   
    protected $table = 'ds_goods_category';


    public function searchCategoryNameAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('category_name', $value);
        }
    }

}
